# -*- coding: utf-8 -*-

from marshmallow import Schema
from odoo_contrib.marshmallow import fields


class FavouritesSchema(Schema):
    id_ = fields.Integer(attribute='id', data_key='id')
    exhibit = fields.Nested('odoo.addons.exhibition.schemas.marshals.exhibit.ExhibitSchemaNoRelation')


class FavouritesRepositorySchema(Schema):
    entries = fields.List(fields.Nested(FavouritesSchema))
    count = fields.Integer()
